/*
 * Copyright (C) 2015 Actor LLC. <https://actor.im>
 */

.compose {
  position: relative;

  box-sizing: border-box;
  padding: 0 32px 12px 87px;

  .my-avatar {
    position: absolute;
    top: 0;
    left: 44px;
  }

  &__message {
    font-size: 15px;

    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: $compose-message-height;
    margin-bottom: 8px;
    padding: 7px 54px 7px 7px;

    resize: none;

    border: none;
    border-radius: 2px;
    outline: none;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px $compose-border-color;
  }
  &__footer {
    margin: 0;
    .button {
      margin-right: 4px;
      &.attachment {
        text-transform: none;
      }
      &:last-child {
        margin-right: 0;
      }
    }
  }
  &__hidden {
    position: absolute;
    left: -9999px;

    visibility: hidden;

    opacity: 0;
  }

  &__markdown-hint {
    font-size: 12px;
    line-height: 22px;

    position: absolute;
    top: -22px;
    right: 32px;

    cursor: default;
    user-select: none;
    transition: opacity $default-transition-duration/2;

    opacity: 0;
    color: rgba(0, 0, 0, .4);
    //pointer-events: none;
    code {
      padding: 1px 2px;

      border-radius: 2px;
      background: rgba(0, 0, 0, .05);
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
    }
    &--active {
      opacity: 1;
    }
  }

  &--editing {
    .compose__message {
      background-color: $message-edit-background;
    }
  }
}

.dropzone {
  position: absolute;
  z-index: 2000;
  top: 0;
  right: 32px;
  left: 87px;

  display: flex;

  height: 76px;

  color: rgba(0, 0, 0, .3);
  border: 2px dashed #e5e5e5;
  border-radius: 2px;
  background-color: white;
  font-weight: 500;
  font-size: 17px;

  align-items: center;
  justify-content: center;
  transition: border $default-transition-duration/3, color $default-transition-duration/3;
  &--hover {
    border-color: $dark-sky-blue;
    color: $dark-sky-blue;
  }
}

.compose__edit-title {
  color: $dark-sky-blue;
  font-weight: 400;
  font-size: 16px;
  margin: 8px 16px;
}
